package com.example.houseman.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.houseman.entity.TbPublicFacility;
import com.example.houseman.service.ITbPublicFacilityService;
import com.org.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 公共配套表 前端控制器
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-31
 */
@RestController
@RequestMapping("/hou/TbPublicFacilityController")
public class TbPublicFacilityController {

    @Autowired
    private ITbPublicFacilityService iTbPublicFacilityService;


    /**
     * 公共配套
     * @return
     */
    @RequestMapping("publiList")
    public List<TbPublicFacility> publiList(){
        QueryWrapper queryWrapper = new QueryWrapper();
        return iTbPublicFacilityService.list(queryWrapper);
    }

}
